<?php
$curr_controller = Yii::app()->controller->id;
$curr_action = Yii::app()->controller->action->id;
?>
<?php $this->beginContent('/layouts/main'); ?>
<div class="container">
    <div class="span-18">
        <div id="content">
            <?php echo $content; ?>
        </div><!-- content -->
    </div>
    <div class="span-6 last">
        <div id="sidebar">
            <div id="sidebar">                
                <?php 
                switch($curr_controller){
                case 'game': $this->widget('GameMenu');break;
                case 'post': $this->widget('PostMenu');break;
                case 'banner': $this->widget('BannerMenu');break;
                }
                ?>
            </div><!-- sidebar -->
        </div><!-- sidebar -->
    </div>
</div>
<?php $this->endContent(); ?>